package com.relytosoft.mizar.media.analyze.api.pojo.vo;

import java.util.Objects;

/**
 * @author lj
 * @date 2022/6/10 14:23
 */
public class AyDataVo {
    private static final long serialVersionUID = 1L;

    private String id;

    private Double score;

    public String getId() {
        return this.id;
    }

    public void setId(final String id) {
        this.id = id;
    }

    public Double getScore() {
        return this.score;
    }

    public void setScore(final Double score) {
        this.score = score;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        AyDataVo ayDataVo = (AyDataVo) o;

        if (!Objects.equals(id, ayDataVo.id)) {
            return false;
        }

        return Objects.equals(score, ayDataVo.score);
    }


    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (score != null ? score.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "AyDataVo{" +
                "id='" + id + '\'' +
                ", score=" + score +
                '}';
    }
}
